<dl class="img_container">
  <a href="/styles/<%= material_detail.style_id.to_s %>/materials/<%= material_detail.id.to_s %>" rel="#overlay" style="text-decoration:none">
    <%= image_tag url_for_file_column(material_detail,"image_url","li"),:title=>"点击放大",:class=>'hot_list_img' if material_detail.image_url %>
  </a>
</dl>
<dl class="rank_button_container">
  <dt class="detail_toolbar">
  <p><%=material_detail.style.name%></p>
  <p>编号 <%= material_detail.sn%> <%= material_detail.name%>色</p>
  <%= "<span class='yen'>#{material_detail.price}</span>" %>

  <% if material_detail.style.sex == Style::MALE %>
    <a href="/store/for_him?product[style_id]=<%=material_detail.style_id%>&<%="product[material_id]=#{material_detail.id}"%>">
      <img src='/images/diy.gif' title="制定男生" class="diy_button" alt="制定男生" />
    </a>
  <% else %>
    <a href="/store/for_her?product[style_id]=<%=material_detail.style_id%>&<%="product[material_id]=#{material_detail.id}"%>">
      <img src='/images/diy.gif' title="制定女生" class="diy_button" alt="制定女生" />
    </a>
  <% end %>
</dt>
<dt class="detail_toolbar">
  <%if editor?%>
    <%= link_to "修改",[:edit,material_detail.style,material_detail],:title=>'修改',:class=>'action_edit' %>
    <%= link_to "删除",[material_detail.style,material_detail], :confirm => '确定删除?', :method => :delete,:title=>'删除',:class=>'action_delete' %>
  <%end%>
</dt>
</dl>